package com.stoa.floatlib.core

import android.content.Context
import android.view.View
import android.widget.FrameLayout

internal interface IStoaFloatView {
    fun onCreate(context: Context?)
    fun onCreateView(
        context: Context,
        rootView: FrameLayout?,
        viewTag: String
    ): View
    fun onViewCreated(rootView: FrameLayout)
    fun canDrag(): Boolean
    fun initStoaFloatViewLayoutParams(params: StoaViewLayoutParams)
    fun onEnterBackground()
    fun onEnterForeground()
    fun shouldDealBackKey(): Boolean
    fun onBackPressed(): Boolean
    fun onResume()
    fun onPause()
    fun onDestroy()
}